ResourceChangeProperty Method (String, Property, Property) |
Sets (adds) and removes properties to/from a resource.
Namespace:
Independentsoft.Webdav
Assembly:
Independentsoft.Webdav (in Independentsoft.Webdav.dll) Version: 1.0.700.18437
Syntaxpublic MultiStatus ChangeProperty(
string address,
Property[] addProperty,
Property[] removeProperty
)
Public Function ChangeProperty (
address As String,
addProperty As Property(),
removeProperty As Property()
) As MultiStatus
Parameters
- address
- Type: SystemString
The URI that identifies the resource. - addProperty
- Type: Independentsoft.WebdavProperty
Array of properties to set (add). - removeProperty
- Type: Independentsoft.WebdavProperty
Array of properties to remove.
Return Value
Type:
MultiStatusA MultiStatus response as a result of operation.
Examples
The following example demonstrates how to use this method:
Property[] addProperty = new Property[2];
addProperty[0] = new Property("newproperty1","mynamespace:","123456789");
addProperty[1] = new Property("newproperty2","mynamespace:","abcd");
PropertyName[] removeProperty = new PropertyName[1];
removeProperty[0] = new PropertyName("oldproperty1","mynamespace:");
resource.ChangeProperty("http://server/folder1/",addProperty,removeProperty);
See Also